package com.test;

import java.util.List;

import org.junit.jupiter.api.Test;

import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;

import cn.javaer.aliyun.sms.SmsClient;
import cn.javaer.aliyun.sms.SmsTemplate;

public class AliyunsmsDemo {

	@Test
	public void  test() throws ServerException, ClientException {
		String accessKeyId = null;
		String accessKeySecret = null;
		SmsClient smsClient = new SmsClient(accessKeyId, accessKeySecret);
		String signName = null;
		String templateCode = null;
		List<String> phoneNumber = null;
		SmsTemplate smsTemplate = SmsTemplate.builder()
		            .signName(signName)
		            .templateCode(templateCode)
		            .addTemplateParam("code", "123456")
		            .phoneNumbers(phoneNumber)
		            .build();
		smsClient.send(smsTemplate);      
	}
}
